﻿<Page x:Class="hr_1.View.Employee_add_new_employee"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:viewmodel="clr-namespace:hr_1.ViewModel"
      mc:Ignorable="d"
      Title="" Height="Auto" Width="Auto" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" d:DesignHeight="534" d:DesignWidth="669">
    <Page.Resources>
        <viewmodel:AllPersonDataViewModel x:Key="AllPersonDataViewModel"/>
    </Page.Resources>
    <Grid>
        <TabControl Name="tabControl1" Foreground="{x:Null}" Margin="0,0,-85,89">
            <TabItem Header="Общая информация" Name="tabItem1">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="536*" />
                        <ColumnDefinition Width="34*" />
                    </Grid.ColumnDefinitions>
                    <Label Height="26" Margin="0,20,402,0" Name="label_tabel" VerticalAlignment="Top" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}">Табельный номер</Label>
                    <TextBox Height="23" Name="tabel" VerticalAlignment="Top" Margin="116,19,0,0" HorizontalAlignment="Left" Width="84" Text="{Binding Path=WorkActivity.EmployeeNumber, Source={StaticResource AllPersonDataViewModel}}"></TextBox>
                    <Label Height="26" Margin="259,19,61,0" Name="label_dateBeginWork" VerticalAlignment="Top" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}">Дата приёма на работу</Label>
                    <TextBox Height="23" Name="dateBeginWork" VerticalAlignment="Top" Margin="399,20,0,0" HorizontalAlignment="Left" Width="89" Text="{Binding Path=Person.DateBeginWork, Source={StaticResource AllPersonDataViewModel}}"></TextBox>
                    <Label Height="26" Margin="13,59,452,0" Name="label_lastname" VerticalAlignment="Top" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}">Фамилия</Label>
                    <TextBox Height="23" Name="lastname" VerticalAlignment="Top" Margin="77,60,0,0" HorizontalAlignment="Left" Width="214" Text="{Binding Path=Person.Lastname, Source={StaticResource AllPersonDataViewModel}}"></TextBox>
                    <Label Height="26" Margin="14,96,387,0" Name="label_firstname" VerticalAlignment="Top" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}">Имя</Label>
                    <TextBox Height="23" Name="firstname" VerticalAlignment="Top" Margin="77,97,0,0" HorizontalAlignment="Left" Width="214" Text="{Binding Path=Person.Firstname, Source={StaticResource AllPersonDataViewModel}}"></TextBox>
                    <Label Height="26" Margin="13,133,443,0" Name="label_middlename" VerticalAlignment="Top" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}">Отчество</Label>
                    <TextBox Height="23" Name="middlename" VerticalAlignment="Top" Margin="77,135,0,0" HorizontalAlignment="Left" Width="214"  Text="{Binding Path=Person.Middlename, Source={StaticResource AllPersonDataViewModel}}"></TextBox>
                    <Label Height="26" Margin="363,57,60,0" Name="label_birthdate" VerticalAlignment="Top" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}">Дата рождения</Label>
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="469,59,0,0" Name="birthdate" VerticalAlignment="Top" Width="89" Text="{Binding Path=Person.Birthday, Source={StaticResource AllPersonDataViewModel}}"/>
                    <Label Height="26" Margin="422,97,0,0" Name="label_sex" VerticalAlignment="Top" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}" HorizontalAlignment="Left" Width="205">Пол</Label>
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="469,98,0,0" Name="sex" VerticalAlignment="Top" Width="Auto" Text="{Binding Path=Person.Sex, Source={StaticResource AllPersonDataViewModel}}" MinWidth="32" />
                    <Label Height="26" Margin="13,189,0,0" Name="label_passpNumber" VerticalAlignment="Top" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}" HorizontalAlignment="Left" Width="73">Паспорт №</Label>
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="92,190,0,0" Name="passpNumber" VerticalAlignment="Top" Width="48" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=PersonalDoc.PasspNumber}" />
                    <Label Height="26" Margin="13,225,389,0" Name="label_passpWho" VerticalAlignment="Top" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}">Кем выдан</Label>
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="92,225,0,0" Name="passpWho" VerticalAlignment="Top" Width="215" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=PersonalDoc.PasspWho}" />
                    <Label Height="26" Margin="15,292,386,0" Name="label_birthplace" VerticalAlignment="Top" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}">Место рождения</Label>
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="120,292,0,0" Name="birthplace" VerticalAlignment="Top" Width="191" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=PersonalDoc.Birthplace}" />
                    <Label Height="26" Margin="13,259,389,0" Name="label_passpWhen" VerticalAlignment="Top" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}">Когда выдан</Label>
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="92,260,0,0" Name="passpWhen" VerticalAlignment="Top" Width="120" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=PersonalDoc.PasspWhen}" />
                    <Label Height="26" Margin="13,326,389,0" Name="label_medPolicy" VerticalAlignment="Top" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}">№ медицинского полиса</Label>
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="187,326,0,0" Name="medPolicy" VerticalAlignment="Top" Width="120" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=PersonalDoc.MedPolicy}" />
                    <Label Height="26" Margin="15,365,0,0" Name="label_inn" VerticalAlignment="Top" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}" HorizontalAlignment="Left" Width="86">ИНН</Label>
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="187,362,0,0" Name="inn" VerticalAlignment="Top" Width="120" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=PersonalDoc.Inn}" />
                    <Label Height="23" Margin="9,395,392,0" Name="label_snils" VerticalAlignment="Top" BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}">№ Страхового свидетельства</Label>
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="187,397,0,0" Name="snils" VerticalAlignment="Top" Width="120" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=PersonalDoc.Snils}" />
                    <Label  Height="26" HorizontalAlignment="Left" Margin="375,220,0,0" Name="label_homePhone" VerticalAlignment="Top">Домашний телефон</Label>
                    <Label  Height="26" HorizontalAlignment="Left" Margin="375,249,0,0" Name="label_mobilePhone" VerticalAlignment="Top">Мобильный телефон</Label>
                    <Label Content="E-mail" Height="26" HorizontalAlignment="Left" Margin="376,278,0,0" Name="label_email" VerticalAlignment="Top" />
                    <Label Content="Семейное положение" Height="26" HorizontalAlignment="Left" Margin="375,307,0,0" Name="label_familyStatus" VerticalAlignment="Top" />
                    <Label Content="Адрес проживания" Height="26" HorizontalAlignment="Left" Margin="375,335,0,0" Name="label_address" VerticalAlignment="Top" />
                    <Label Content="Национальность" Height="26" HorizontalAlignment="Left" Margin="375,367,0,0" Name="label_nationality" VerticalAlignment="Top" />
                    <Label Content="Гражданство" Height="28" HorizontalAlignment="Left" Margin="376,395,0,0" Name="label_citizenship" VerticalAlignment="Top" />
                    <Label Content="Серия" Height="26" HorizontalAlignment="Left" Margin="146,190,0,0" Name="label_passpSeries" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="196,190,0,0" Name="passpSeries" VerticalAlignment="Top" Width="95" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=PersonalDoc.PasspSeries}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="544,395,0,0" Name="citizenship" VerticalAlignment="Top" Width="120" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=PersonalInfo.Citizenship}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="544,370,0,0" Name="nationality" VerticalAlignment="Top" Width="120" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=PersonalInfo.Nationality}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="544,338,0,0" Name="address" VerticalAlignment="Top" Width="120" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=PersonalInfo.Address}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="544,307,0,0" Name="familyStatus" VerticalAlignment="Top" Width="120" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=PersonalInfo.FamilyStatus}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="544,278,0,0" Name="email" VerticalAlignment="Top" Width="120" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=PersonalInfo.Email}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="544,249,0,0" Name="mobilePhone" VerticalAlignment="Top" Width="120" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=PersonalInfo.MobilePhone}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="544,220,0,0" Name="homePhone" VerticalAlignment="Top" Width="120" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=PersonalInfo.HomePhone}" />
                </Grid>
            </TabItem>
            <TabItem Header="Образование и воинский учёт" Name="tabItem2">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="548*" />
                        <ColumnDefinition Width="35*" />
                    </Grid.ColumnDefinitions>
                    <Label Content="Уровень образования" Height="28" HorizontalAlignment="Left" Margin="41,32,0,0" Name="label_edLevel" VerticalAlignment="Top" />
                    <Label Content="Учебное заведение" Height="28" HorizontalAlignment="Left" Margin="41,66,0,0" Name="label_instittion" VerticalAlignment="Top" />
                    <Label Content="Факультет" Height="28" HorizontalAlignment="Left" Margin="41,98,0,0" Name="label_faculty" VerticalAlignment="Top" />
                    <Label Content="Специальность" Height="28" HorizontalAlignment="Left" Margin="41,132,0,0" Name="label_speciality" VerticalAlignment="Top" />
                    <Label Content="Квалификация" Height="28" HorizontalAlignment="Left" Margin="41,168,0,0" Name="label_qualification" VerticalAlignment="Top" />
                    <Label Content="Степень" Height="28" HorizontalAlignment="Left" Margin="41,204,0,0" Name="label_degree" VerticalAlignment="Top" />
                    <Label Content="Дата окончания" Height="28" HorizontalAlignment="Left" Margin="41,238,0,0" Name="label_dateEnd" VerticalAlignment="Top" />
                    <Label Content="Номер диплома" Height="28" HorizontalAlignment="Left" Margin="41,272,0,0" Name="label_diplom" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="212,30,0,0" Name="edLevel" VerticalAlignment="Top" Width="452" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=EducationMilitary.EdLevel}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="213,64,0,0" Name="institution" VerticalAlignment="Top" Width="451" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=EducationMilitary.Institution}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="212,100,0,0" Name="faculty" VerticalAlignment="Top" Width="452" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=EducationMilitary.Faculty}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="212,137,0,0" Name="speciality" VerticalAlignment="Top" Width="452" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=EducationMilitary.Speciality}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="212,171,0,0" Name="qualification" VerticalAlignment="Top" Width="452" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=EducationMilitary.Qualification}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="212,204,0,0" Name="degree" VerticalAlignment="Top" MinWidth="200" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=EducationMilitary.Degree}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="212,240,0,0" Name="dateEnd" VerticalAlignment="Top" Width="120" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=EducationMilitary.DateEnd}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="212,274,0,0" Name="diplom" VerticalAlignment="Top" Width="155" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=EducationMilitary.Diplom}" />
                    <Label Content="Статус" Height="28" HorizontalAlignment="Left" Margin="41,373,0,0" Name="label_milStatus" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="212,373,0,0" Name="militaryStatus" VerticalAlignment="Top" Width="Auto" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=EducationMilitary.Status}" MinWidth="32" />
                </Grid>
            </TabItem>
            <TabItem Header="Трудовая деятельнось" Name="tabItem3">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="548*" />
                        <ColumnDefinition Width="35*" />
                    </Grid.ColumnDefinitions>
                    <Label Height="28" HorizontalAlignment="Left" Margin="25,27,0,0" Name="contractL" VerticalAlignment="Top" Content="№ договора" />
                    <Label Content="Дата приёма" Height="28" HorizontalAlignment="Left" Margin="25,61,0,0" Name="data_hireL" VerticalAlignment="Top" />
                    <Label Content="Подразделение" HorizontalAlignment="Left" Margin="25,95,0,0" Name="departmentL" Height="28" VerticalAlignment="Top" />
                    <Label Content="Группа" Height="28" HorizontalAlignment="Left" Margin="25,129,0,0" Name="position_groupL" VerticalAlignment="Top" />
                    <Label Content="Должность" Height="28" HorizontalAlignment="Left" Margin="25,163,0,0" Name="positionL" VerticalAlignment="Top" />
                    <Label Content="Оклад" HorizontalAlignment="Left" Margin="25,197,0,0" Name="salaryL" Height="28" VerticalAlignment="Top" />
                    <Label Content="Дата увольнения" Height="28" HorizontalAlignment="Left" Margin="308,60,0,0" Name="data_dismissalL" VerticalAlignment="Top" />
                    <Label Content="Ставка" HorizontalAlignment="Left" Margin="25,231,0,0" Name="rateL" Height="28" VerticalAlignment="Top" />
                    <Label Content="Стаж" Height="28" HorizontalAlignment="Left" Margin="25,265,0,0" Name="experienceL" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="116,29,0,0" Name="contractTB" VerticalAlignment="Top" Width="120" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=WorkActivity.Contract}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="116,61,0,0" Name="data_hireTB" VerticalAlignment="Top" Width="120" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=WorkActivity.DateHire}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="142,97,0,0" Name="departmentTB" VerticalAlignment="Top" Width="467" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=WorkActivity.Department}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="142,134,0,0" Name="position_groupTB" VerticalAlignment="Top" Width="467" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=WorkActivity.PositionGroup}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="142,165,0,0" Name="positionTB" VerticalAlignment="Top" Width="467" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=WorkActivity.Position}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="142,197,0,0" Name="salaryTB" VerticalAlignment="Top" Width="94" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=WorkActivity.Salary}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="142,231,0,0" Name="rateTB" VerticalAlignment="Top" Width="94" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=WorkActivity.Rate}" />
                    <TextBox Height="28" HorizontalAlignment="Left" Margin="142,265,0,0" Name="experienceTB" VerticalAlignment="Top" Width="94" ClipToBounds="False" Text="{Binding Source={StaticResource AllPersonDataViewModel}, Path=WorkActivity.Experience}" />
                    <TextBox Height="23" Margin="440,61,0,0" Name="data_dismissalTB" VerticalAlignment="Top" HorizontalAlignment="Left" Width="120" />
                </Grid>
            </TabItem>
            <!--<TabItem Header="Критерии" Name="tabItem4">
                <Grid>
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="6,89,0,0" Name="comboBox2" VerticalAlignment="Top" Width="222">
                        <ComboBoxItem Content="Критерий_2" IsSelected="True" />
                        <ComboBoxItem Content="Критерий_3" />
                    </ComboBox>
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="6,50,0,0" Name="comboBox1" VerticalAlignment="Top" Width="222">
                        <ComboBoxItem Content="Критерий_3" IsSelected="True" />
                        <ComboBoxItem Content="Критерий_4" />
                    </ComboBox>
                    <ComboBox Height="23" HorizontalAlignment="Left" Margin="6,130,0,0" Name="comboBox3" VerticalAlignment="Top" Width="222">
                        <ComboBoxItem Content="Критерий_5" IsSelected="True" />
                        <ComboBoxItem Content="Критерий_6" />
                    </ComboBox>
                    <TextBox HorizontalAlignment="Left" Margin="56,6,0,0" Name="textBox9" Width="62" Height="23" VerticalAlignment="Top" Text="Название" Background="{x:Null}" BorderBrush="{x:Null}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="393,6,0,0" Name="textBox10" Text="Значение" VerticalAlignment="Top" Width="62" Background="{x:Null}" BorderBrush="{x:Null}" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="393,50,0,0" Name="textBox11" VerticalAlignment="Top" Width="62" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="393,132,0,0" Name="textBox12" VerticalAlignment="Top" Width="62" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="393,91,0,0" Name="textBox13" VerticalAlignment="Top" Width="62" />
                    <Button Content="Добавить критерий" HorizontalAlignment="Right" Margin="0,0,182,25" Name="Add_measure" Width="124" Height="23" VerticalAlignment="Bottom" />
                </Grid>
            </TabItem>-->
        </TabControl>
        <Button Content="Сохранить" Margin="0,0,120,25" Name="Save"  HorizontalAlignment="Right" Width="75" Height="23" VerticalAlignment="Bottom" Command="{Binding Path=SaveCommand, Source={StaticResource AllPersonDataViewModel}}"/>
        <Button Content="Отмена" Margin="0,0,25,25" Name="Cancel" Click="Cancel_Click" Height="23" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="75" />
    </Grid>
</Page>
